package com.s3.khospitalds.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.s3.khospitalds.entity.Storage;
import com.s3.khospitalds.mapper.StorageMapper;
import com.s3.khospitalds.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/2/28
 * @Description: 药库信息表
 * @Version: 1.0
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {
    @Autowired
    private StorageMapper storageMapper;

    @Override
    public List<Storage> findByName(String name) {
        return storageMapper.findByName(name);
    }

    @Override
    public int insertStorage(Storage storage) {
        return storageMapper.insertStorage(storage);
    }
}
